package encaps.utils.rendering;

import encaps.utils.html.HTMLElement;
import static encaps.utils.html.HTML.*;

public class PasswordFieldFactory extends TextControlFactory {

    @Override
    protected HTMLElement createTextControl(String name, String value) {
        HTMLElement control = new HTMLElement(INPUT);
        control.addAttribute(TYPE, PASSWORD);
        control.addAttribute(SIZE, DEFAULT_INPUT_SIZE);
        control.addAttribute(NAME, name);
        return control;
    }
}
